<template>
    <router-view></router-view>
</template>

<script lang="ts" setup>
import { equipInit, serviceInit, userInit } from "./utils/init";

init();
// 初始化
async function init() {
    try {
        await userInit().catch(() => {
            throw new Error("Login Failed");
        });
        await equipInit();
        await serviceInit();
    } catch (err: any) {
        console.error(err.message);
    }
}
</script>
